package cn.quevo.cube.provide.data.service.impl;

import cn.quevo.common.entity.PageResult;
import cn.quevo.cube.provide.data.dao.CubeModelDataClobDao;
import cn.quevo.cube.provide.data.entity.CubeModelDataClob;
import cn.quevo.cube.provide.data.entity.query.CubeModelDataClobQuery;
import cn.quevo.cube.provide.data.service.CubeModelDataClobService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 大文本数据记录 Service接口实现
 *
 * @author July july_sky@foxmail.com
 * @version 1.0
 * @date 2018/12/11 14:57:55
 * @Copyright 东方浩星（北京）传媒科技有限公司版权所有.All Rights Reserved.
 */
@Service("cubeModelDataClobService")
@Transactional(transactionManager="transactionManager",rollbackFor={Exception.class})
public class CubeModelDataClobServiceImpl implements CubeModelDataClobService {
    @Resource(name="cubeModelDataClobDao")
    private CubeModelDataClobDao cubeModelDataClobDao;

    @Override
    public Map<String,Object> getSinge(CubeModelDataClobQuery cubeModelDataClobQuery) {
        return this.cubeModelDataClobDao.getSinge(cubeModelDataClobQuery);
    }

    @Override
    public Integer create(CubeModelDataClob cubeModelDataClob) {
        cubeModelDataClob.validateCreate();
        return this.cubeModelDataClobDao.create(cubeModelDataClob);
    }

    @Override
    public Integer update(CubeModelDataClob cubeModelDataClob) {
        cubeModelDataClob.validateUpdate();
        return this.cubeModelDataClobDao.update(cubeModelDataClob);
    }

    @Override
    public PageResult<Map<String,Object>> getPage(CubeModelDataClobQuery cubeModelDataClobQuery) {
        return this.cubeModelDataClobDao.getPage(cubeModelDataClobQuery);
    }
}
